package com.example.zwlyz.models;

import java.io.Serializable;

public class Article implements Serializable {
    private final int id;
    private String title;
    private String content;
    private String author;
    private String time;

    public Article(int id, String title, String content, String author, String time) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.author = author;
        this.time = time;
    }

    // Getters
    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public String getAuthor() {
        return author;
    }

    public String getTime() {
        return time;
    }
}